<template>
  <el-row class="welcome-page" justify="center" align="middle">
    <el-col :span="24" class="bg">
      <div class="welcome-card">
        <h1>欢迎来到！信息管理-word文档自助填写系统</h1>
        <p>很高兴见到你！希望你在这里度过愉快的时光。</p>
        <el-button type="primary" @click="goToDashboard">进入仪表板</el-button>
      </div>
    </el-col>
  </el-row>
</template>

<script setup>
import { useRouter } from 'vue-router';

const router = useRouter();

const goToDashboard = () => {
  router.push('/'); // 假设仪表板页面路径为 /
};
</script>

<style scoped>
.welcome-page {
  height: 100vh;
  width: 100vw;
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.bg {
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("@/assets/welcome_bg.jpg") no-repeat center center;
  background-size: cover;
  height: 100%;
  width: 100%;
}

.welcome-card {
  background: rgba(255, 255, 255, 0.9);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333;
}

.welcome-card h1 {
  margin-bottom: 20px;
  font-size: 36px;
}

.welcome-card p {
  margin-bottom: 30px;
  font-size: 18px;
}

.el-button {
  font-size: 16px;
  padding: 10px 20px;
}
</style>
